<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Calendario{
    public function getCalendario(){

            $array = array('culture'=> sfContext::getInstance()->getUser()->getCulture(),
                            'config' => "{
                            showOn: 'button',
                            buttonImage: '/images/calendar.gif',
                            buttonImageOnly: true,
                            showOtherMonths: true,
                            selectOtherMonths: true,
                            showWeek: true,
                            showButtonPanel: true,
                            changeMonth: true,
                            changeYear: true,
                            showAnim: 'show'}");
            return $array;

        }

     static public function slugify($text){

            //  Remplaza todos lo que no es letra o digitos por -
            $text = preg_replace('/\W+/', '-', $text);

            // y lo coloca en minuscula
            $text = strtolower(trim($text, '-'));

    return $text;
  }

    
}
?>
